package com.css.zfzx.data.primary.fxCasualtyLevelMapPG.repository.entity;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

/**
 * @Description: data
 * @Author: lhl
 * @CreateDate: 2021/4/13 10:04
 */
@Entity
@Table(name = "fx_casualty_level_map", schema = "base", catalog = "")
public class FxCasualtyLevelMapPGEntity {
    private String uuid;
    private String province;
    private String city;
    private String area;
    private String affiliatedFileName;
    private String coordinate;
    private int level;
    private String extend1;
    private String extend2;
    private String extend3;
    private String extend4;
    private String extend5;
    private String extend6;
    private String extend7;
    private String extend8;
    private String extend9;
    private String extend10;
    private String objectCode;
    private String isValid;
    private String partitionFlag;
    private String createUser;
    private Date createTime;
    private String updateUser;
    private Date updateTime;

    @Id
    @Column(name = "uuid")
    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Basic
    @Column(name = "province")
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    @Basic
    @Column(name = "city")
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Basic
    @Column(name = "area")
    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    @Basic
    @Column(name = "affiliated_file_name")
    public String getAffiliatedFileName() {
        return affiliatedFileName;
    }

    public void setAffiliatedFileName(String affiliatedFileName) {
        this.affiliatedFileName = affiliatedFileName;
    }

    @Basic
    @Column(name = "coordinate")
    public String getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(String coordinate) {
        this.coordinate = coordinate;
    }

    @Basic
    @Column(name = "level")
    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    @Basic
    @Column(name = "extend1")
    public String getExtend1() {
        return extend1;
    }

    public void setExtend1(String extend1) {
        this.extend1 = extend1;
    }

    @Basic
    @Column(name = "extend2")
    public String getExtend2() {
        return extend2;
    }

    public void setExtend2(String extend2) {
        this.extend2 = extend2;
    }

    @Basic
    @Column(name = "extend3")
    public String getExtend3() {
        return extend3;
    }

    public void setExtend3(String extend3) {
        this.extend3 = extend3;
    }

    @Basic
    @Column(name = "extend4")
    public String getExtend4() {
        return extend4;
    }

    public void setExtend4(String extend4) {
        this.extend4 = extend4;
    }

    @Basic
    @Column(name = "extend5")
    public String getExtend5() {
        return extend5;
    }

    public void setExtend5(String extend5) {
        this.extend5 = extend5;
    }

    @Basic
    @Column(name = "extend6")
    public String getExtend6() {
        return extend6;
    }

    public void setExtend6(String extend6) {
        this.extend6 = extend6;
    }

    @Basic
    @Column(name = "extend7")
    public String getExtend7() {
        return extend7;
    }

    public void setExtend7(String extend7) {
        this.extend7 = extend7;
    }

    @Basic
    @Column(name = "extend8")
    public String getExtend8() {
        return extend8;
    }

    public void setExtend8(String extend8) {
        this.extend8 = extend8;
    }

    @Basic
    @Column(name = "extend9")
    public String getExtend9() {
        return extend9;
    }

    public void setExtend9(String extend9) {
        this.extend9 = extend9;
    }

    @Basic
    @Column(name = "extend10")
    public String getExtend10() {
        return extend10;
    }

    public void setExtend10(String extend10) {
        this.extend10 = extend10;
    }

    @Basic
    @Column(name = "object_code")
    public String getObjectCode() {
        return objectCode;
    }

    public void setObjectCode(String objectCode) {
        this.objectCode = objectCode;
    }

    @Basic
    @Column(name = "is_valid")
    public String getIsValid() {
        return isValid;
    }

    public void setIsValid(String isValid) {
        this.isValid = isValid;
    }

    @Basic
    @Column(name = "partition_flag")
    public String getPartitionFlag() {
        return partitionFlag;
    }

    public void setPartitionFlag(String partitionFlag) {
        this.partitionFlag = partitionFlag;
    }

    @Basic
    @Column(name = "create_user")
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "update_user")
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    @Basic
    @Column(name = "update_time")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FxCasualtyLevelMapPGEntity that = (FxCasualtyLevelMapPGEntity) o;
        return Objects.equals(uuid, that.uuid) &&
                Objects.equals(province, that.province) &&
                Objects.equals(city, that.city) &&
                Objects.equals(area, that.area) &&
                Objects.equals(affiliatedFileName, that.affiliatedFileName) &&
                Objects.equals(coordinate, that.coordinate) &&
                Objects.equals(level, that.level) &&
                Objects.equals(extend1, that.extend1) &&
                Objects.equals(extend2, that.extend2) &&
                Objects.equals(extend3, that.extend3) &&
                Objects.equals(extend4, that.extend4) &&
                Objects.equals(extend5, that.extend5) &&
                Objects.equals(extend6, that.extend6) &&
                Objects.equals(extend7, that.extend7) &&
                Objects.equals(extend8, that.extend8) &&
                Objects.equals(extend9, that.extend9) &&
                Objects.equals(extend10, that.extend10) &&
                Objects.equals(objectCode, that.objectCode) &&
                Objects.equals(isValid, that.isValid) &&
                Objects.equals(partitionFlag, that.partitionFlag) &&
                Objects.equals(createUser, that.createUser) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(updateUser, that.updateUser) &&
                Objects.equals(updateTime, that.updateTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(uuid, province, city, area, affiliatedFileName, coordinate, level, extend1, extend2, extend3, extend4, extend5, extend6, extend7, extend8, extend9, extend10, objectCode, isValid, partitionFlag, createUser, createTime, updateUser, updateTime);
    }
}
